package dto

import "tdy-backend/pkg/paginator"

//提交作品参数结构
type WorksCommitDto struct {
	Title      string        `json:"Title" binding:"required"`
	Status     uint          `json:"Status" binding:"required"`
	Cover      string        `json:"Cover" binding:"-"`
	SceneParam *SceneJoinDto `json:"SceneParam" binding:"required"`
}

//删除作品参数结构
type WorksDeleteDto struct {
	Ids []uint `json:"Ids" binding:"required"`
}

//作品列表参数结构
type WorksListDto struct {
	paginator.PageParam
	Keyword string `json:"Keyword" binding:"-"`
	Status  uint   `json:"Status" binding:"-"`
}

//修改作品参数结构
type WorksEditDto struct {
	ID     uint   `json:"ID" binding:"required"`
	Title  string `json:"Title" binding:"required"`
	Status uint   `json:"Status" binding:"required"`
	Cover  string `json:"Cover" binding:"required"`
}
